package com.example.netcenter.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lixl on 2018/12/7.
 * <p>
 * desc:我的上新列表
 */
public class ResultsList<T> implements Serializable {
    /**
     * statusCode : 100000
     * statusStr : 请求成功
     * data : {"pageSize":10,"pageNo":1,"isLast":true,"total":1,"objects":[{"id":"4","supplierId":135,"goodsName":"小黄瓜","imgs":"","sourceCity":"山东","packing":"泡沫箱装","sizeDesc":"4元一斤","priceUnit":"斤","price":4,"note":"好吃不贵","status":0,"createTime":"2018-12-07 17:18:20"}]}
     */

    private String statusCode;
    private String statusStr;
    private DataBean<T> data;

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean<T> {
        /**
         * pageSize : 10
         * pageNo : 1
         * isLast : true
         * total : 1
         * objects : [{"id":"4","supplierId":135,"goodsName":"小黄瓜","imgs":"","sourceCity":"山东","packing":"泡沫箱装","sizeDesc":"4元一斤","priceUnit":"斤","price":4,"note":"好吃不贵","status":0,"createTime":"2018-12-07 17:18:20"}]
         */

        private int pageSize;
        private int pageNo;
        private boolean isLast;
        private int total;
        private List<T> objects;

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public boolean isIsLast() {
            return isLast;
        }

        public void setIsLast(boolean isLast) {
            this.isLast = isLast;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<T> getObjects() {
            return objects;
        }

        public void setObjects(List<T> objects) {
            this.objects = objects;
        }
    }
}
